picture: Setting keep-aspect-ratio requires a redraw
authorMarco Melorio <marco.melorio@protonmail.com>
Thu, 18 Nov 2021 01:39:15 +0000 (02:39 +0100)
committerMarco Melorio <marco.melorio@protonmail.com>
Thu, 18 Nov 2021 01:39:15 +0000 (02:39 +0100)
gtk/gtkpicture.c

index 6821ecacfbce29c9805e22af87976e139301a7d8..48157d3e143fbeed04930bda4709bb7e7f6bf7e1 100644 (file)
@@ -839,6 +839,9 @@ gtk_picture_set_keep_aspect_ratio (GtkPicture *self,
     return;
 
   self->keep_aspect_ratio = keep_aspect_ratio;
+
+  gtk_widget_queue_draw (GTK_WIDGET (self));
+
   g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_KEEP_ASPECT_RATIO]);
 }